We will use this to disable menus in the initial-setup session.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/569
hasWorkspaces: false,
hasWindows: false,
hasNotifications: false,
+ hasWmMenus: false,
isLocked: false,
isGreeter: false,
isPrimary: false,
hasRunDialog: true,
hasWorkspaces: true,
hasWindows: true,
+ hasWmMenus: true,
hasNotifications: true,
isLocked: false,
isPrimary: true,
}
showWindowMenuForWindow(window, type, rect) {
+ if (!Main.sessionMode.hasWmMenus)
+ return;
+
if (type != Meta.WindowMenuType.WM)
throw new Error('Unsupported window menu type');
let menu = new WindowMenu(window, this._sourceActor);